﻿namespace HutongGames.PlayMaker
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmRect : NamedVariable
    {
        [SerializeField]
        private Rect value;

        public FsmRect()
        {
        }

        public FsmRect(FsmRect source) : base(source)
        {
            this.value = source.value;
        }

        public FsmRect(string name) : base(name)
        {
        }

        public static implicit operator FsmRect(Rect value)
        {
            FsmRect rect2 = new FsmRect(string.Empty);
            rect2.value = value;
            return rect2;
        }

        public override string ToString()
        {
            return this.value.ToString();
        }

        public Rect Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

